<template>
  <div>
    <header>
      <h1>Vue3.0 + Echarts 大数据可视化</h1>
    </header>
    <section class="container">
      <section class="ietmLeft">
        <ItemPage><ItemOne/></ItemPage>
        <ItemPage><ItemTwo/></ItemPage>
      </section>
      <section class="ietmCenter">
        <MapPage></MapPage>
      </section>
      <section class="ietmRight">
        <ItemPage><ItemThree/></ItemPage>
        <ItemPage><ItemFour/></ItemPage>
      </section>
    </section>
  </div>
</template>

<script setup>
import {inject} from 'vue'
import ItemPage from '../components/ItemPage.vue'
import ItemOne from '../components/ItemOne.vue'
import ItemTwo from '../components/ItemTwo.vue'
import ItemThree from '../components/ItemThree.vue'
import ItemFour from '../components/ItemFour.vue'
import MapPage from '../components/mapPage.vue'

//获取echarts
let $echarts = inject('echarts')
let $http = inject('axios')

</script>

<style lang="less">
header {
  height: 1rem;
  width: 100%;
  background-color: rgba(0, 0, 255, 0.2);
  // 标题的文字样式
  h1 {
    font-size: 0.375rem;
    color: #fff;
    text-align: center;
    line-height: 1rem;
  }
}

.container{
  max-width: 2048px;
  min-width: 1200px;
  margin: 0 auto;
  padding: .125rem .125rem 0;
  display: flex;
  .ietmLeft,.ietmRight{
    flex: 3;
  }
  .ietmCenter{
    flex: 5;
    height: 10.5rpx;
    border: 1px solid blue;
    padding: 0.125rem;
    margin: 0.25rem;
  }
}
</style>